﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TodoApp.ResultModel;
using TodoApp.TMS_Basics.TMS_coordination;
using Volo.Abp.Application.Services;

namespace TodoApp.TMS_Basics.TMS_coordination
{
    public class TMS_cooAppService : ApplicationService
    {
        private readonly ITMS_coordinations _ITMS_coordinations;
        public TMS_cooAppService(ITMS_coordinations ITMS_coordinations)
        {
            _ITMS_coordinations = ITMS_coordinations;
        }
        
        public async Task<PageResponse<TMS_coordinationDto>> GetCoo(string CooName, string CooPhone, int pageindex = 1, int pagesize = 5)
        {
            return await _ITMS_coordinations.GetCoo(CooName, CooPhone, pageindex, pagesize);
        }

        public async Task<int> CooAdds(TMS_coordinationDto info)
        { 
            return await _ITMS_coordinations.CooAdds(info);
        }

        public async Task<int> DeletCoo(string Id)
        { 
            return await _ITMS_coordinations.DeletCoo(Id);
        }

    }
}
